//
//  DYCommentsReplyVC.m
//  kafuMerchant
//
//  Created by 帝云科技 on 2018/9/20.
//  Copyright © 2018年 帝云科技. All rights reserved.
//

#import "DYCommentsReplyVC.h"
#import "DYCommentsReplyCell.h"
#import "DYCommentsReplyView.h"

@interface DYCommentsReplyVC ()

@property (nonatomic,strong)DYCommentsReplyView *replyView;

@end

@implementation DYCommentsReplyVC

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.navigationItem.title=@"评价回复";
}
-(void)dy_initUI
{
    [super dy_initUI];
    
    self.tableView.backgroundColor=WhiteColor;
    self.tableView.tableFooterView=self.replyView;
    [self.tableView registerClass:[DYCommentsReplyCell class] forCellReuseIdentifier:@"DYCommentsReplyCell"];
}
-(NSInteger)numberOfSectionsInTableView:(UITableView *)tableView
{
    return 1;
}
-(NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
{
    return 1;
}
-(CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath
{
    return BILIHEIGHT(110);
}
-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
    DYCommentsReplyCell *cell=[tableView dequeueReusableCellWithIdentifier:@"DYCommentsReplyCell" forIndexPath:indexPath];
    return cell;
}

-(DYCommentsReplyView *)replyView
{
    if (!_replyView) {
        _replyView=[[DYCommentsReplyView alloc]initWithFrame:CGRectMake(0, 0, kScreenWidth, BILIHEIGHT(350))];
        
        _replyView.replyBlock = ^(NSString *text) {
            XHQHUDTEXT(text);
        };
    }
    return _replyView;
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
